import 'package:hotpot/generated/json/base/json_convert_content.dart';
import 'package:hotpot/models/product_public_category.dart';

ProductPublicCategory $ProductPublicCategoryFromJson(Map<String, dynamic> json) {
	final ProductPublicCategory productPublicCategory = ProductPublicCategory();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		productPublicCategory.id = id;
	}
	final String? displayName = jsonConvert.convert<String>(json['display_name']);
	if (displayName != null) {
		productPublicCategory.displayName = displayName;
	}
	return productPublicCategory;
}

Map<String, dynamic> $ProductPublicCategoryToJson(ProductPublicCategory entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['display_name'] = entity.displayName;
	return data;
}